-- GENERATED SPELL FOR [En'kilah Crypt Fiend] --


function spell0_25386(pUnit, Event) --@Crypt Scarabs,n/a--
pUnit:FullCastSpellOnTarget(31600,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25386', 2000, 1)
end

function Sorts_25386(pUnit, Event)
local choix_sorts_25386 = math.random(0, 0)
if choix_sorts_25386 == 0 then
pUnit:RegisterEvent('spell0_25386', 1, 1)
end
end

function mob25386_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25386', math.random(1500, 3000), 1)
end

function mob25386_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25386_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25386_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25386, 1, 'mob25386_Action')
RegisterUnitEvent(25386, 2, 'mob25386_Leave')
RegisterUnitEvent(25386, 3, 'mob25386_Kill')
RegisterUnitEvent(25386, 4, 'mob25386_Die')
